﻿/* File Created: августа 28, 2012 */
function views() {
    initView: { 
        header: '<h1 data-bind="text: name"></h1>', 
        content: '<img src="Content/images/ajax-loader.gif" />', 
        footer: '<p style="font-size: 10px; margin: 10px">© 2012 Danfoss and other contributors</p>'
    };

    authView: {
        header: '<h1 data-bind="text: data.user"></h1>', 
        content: '<ul data-role="listview" data-inset="true"><li data-role="fieldcontain"><label for="inpUserName">Username</label><input id="inpUserName" type="text" data-bind="value: data.user" /></li><li data-role="fieldcontain"><label for="inpPassword">Password</label><input id="inpPassword" type="password" data-bind="value: data.pass" /></li><li data-role="fieldcontain"><label for="inpRememberMe">Remember me?</label><input id="inpRememberMe" type="checkbox" data-bind="checked: data.auto" /></li><li data-role="fieldcontain"><button id="btnLogin" name="btnLogin" data-bind="click: login">Log in</button></li></ul><div data-bind="visible: data.error.length > 0"><p><strong data-bind="text: data.error" style="color: Red"></strong></p></div>', 
        footer: '<p style="font-size: 10px; margin: 10px">© 2012 Danfoss and other contributors</p>'
    };

    objectListView: {
        header: '<h1 data-bind="text: name"></h1></div>',
        content: '<ul data-role="listview" data-bind="foreach: data.items"><li><div><span data-bind="text: key"></span><br /><span style="font-size: 10px" data-bind="visible: $root.data.showRenderTimes">(item rendered on <span data-bind="text: new Date().toLocaleString()"></span>)</span></div></li></ul>',
        footer: '<p style="font-size: 10px; margin: 10px">© 2012 Danfoss and other contributors</p>'
    }
}